package com.open.source.component.redis.listener;

import org.springframework.data.redis.connection.Message;
import org.springframework.data.redis.listener.KeyExpirationEventMessageListener;
import org.springframework.data.redis.listener.RedisMessageListenerContainer;
import org.springframework.stereotype.Component;

/**
 * 订阅redis key过期时间，需要reids 服务器配置notify-keyspace-events Ex
 * @author ZonLen since on 2022/8/19 下午10:33
 */
@Component
public class RedisDelayQueueListener extends KeyExpirationEventMessageListener {

  /**
   * @param listenerContainer must not be {@literal null}.
   */
  public RedisDelayQueueListener(
      RedisMessageListenerContainer listenerContainer) {
    super(listenerContainer);
  }

  @Override
  protected void doHandleMessage(Message message) {

  }
}
